home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 012 / newkey43.arc / DEMO.KEY < prev    next >
Text File  |  1987-05-02  |  31KB  |  452 lines

  1. <begdef><&>HELLO <altn><enddef>
  2. <begdef><alt1>Enter any number of keystrokes followed by enter: 
  3. <vfld> <esc>and Newkey will finish for you.<enddef>
  4. <begdef><alt2>Enter 2 keystrokes: <ffld><ffld> and Newkey will fini
  5. sh for you.<enddef>
  6. <begdef><alt3>Enter '<notr>&' followed by enter: <vfld>  You will n
  7. otice<esc>that '<notr>&' has been redefined to 'HELLO'.<esc>Now ent
  8. er ctrl-2 and '<notr>&' followed by enter: <vfld><esc>You will noti
  9. ce that '<notr>&' was returned, not 'HELLO'.<esc>This is an example
  10.  of Newkey's no translation feature.<esc>
  11.                                                                         <esc>
  12.      Press F8 to continue.                                              <esc>
  13. <enddef>
  14. <begdef><altc>NEWKEYSP /C<enter>
  15. <enddef>
  16. <begdef><altd><esc>cls<enter>
  17.                         TOUR DIRECTORY                                  <esc>
  18.                                                                         <esc>
  19. ALT  F1 - Begin tour                                                    <esc>
  20.                                                                         <esc>
  21.      F1 - Introduction                                                  <esc>
  22.      F2 - Defining a key definition (macro)                             <esc>
  23.      F3 - Nested key definitions                                        <esc>
  24.      F4 - Variable length fill-in-the-blanks fields                     <esc>
  25.      F5 - Fixed length fill-in-the-blanks fields                        <esc>
  26.      F6 - Switching Newkey on/off                                       <esc>
  27.      F7 - Translation bypass (escape)                                   <esc>
  28.      F8 - Dynamic display/update features                               <esc>
  29.      F9 - Other features                                                <esc>
  30.                                                                         <esc>
  31. CTRL F1 - Introduction to Newkeysp, the Newkey support program          <esc>
  32. CTRL F2 - Invoking Newkeysp                                             <esc>
  33. CTRL F3 - Registration information                                      <esc>
  34. CTRL F4 - Exit tour                                                     <esc>
  35.                                                                         <esc>
  36. ALT C   - Clear this demonstration from Newkey's memory                 <esc>
  37. ALT D   - This screen                                                   <esc>
  38. ALT H   - Help                                                          <esc>
  39.                                                                         <esc>
  40.     Press any of the above keys to continue tour.                       <esc>
  41. <enddef>
  42. <begdef><altf1>cls<enter>
  43.                   A GUIDED TOUR OF NEWKEY                               <esc>
  44. (C)Copyright Frank Bell, 1986, 1987.  All rights reserved.              <esc>
  45.                                                                         <esc>
  46. The author, Frank A. Bell, grants a limited license to copy and         <esc>
  47. share unmodified copies of the Newkey evaluation diskette subject       <esc>
  48. to the restrictions documented in the NEWKEY.DOC file on the            <esc>
  49. diskette.  This full-power evaluation version is identical to the       <esc>
  50. registered version with the exception that it does not display this     <esc>
  51. screen. If, after an initial evaluation period of 30 days,              <esc>
  52. you continue to use Newkey we trust you to register your copy.          <esc>
  53. Registration costs $30, and provides the following benefits:            <esc>
  54.   - The latest version of Newkey without an initial evaluation screen   <esc>
  55.   - A printed manual                                                    <esc>
  56.   - Telephone or mail support                                           <esc>
  57.   - Notification of new releases                                        <esc>
  58.   - Support for a software author willing to let you evaluate           <esc>
  59.     before purchase                                                     <esc>
  60.                                                                         <esc>
  61. To register send a check or money order for $30 to:                     <esc>
  62.         FAB Sofware                                                     <esc>
  63.         P.O. Box 336                                                    <esc>
  64.         Wayland, MA 01778                                               <esc>
  65.     Press ALT F2 to continue.                                           <esc>
  66. <enddef>
  67. <begdef><altf2>cls<enter>
  68.                   A GUIDED TOUR OF NEWKEY                               <esc>
  69.                                                                         <esc>
  70.      This tour will serve as a general introduction to Newkey.  It      <esc>
  71. is not intended to demonstrate all of Newkey's features.  You will      <esc>
  72. find the Newkey manual an excellent aid in learning to use Newkey's     <esc>
  73. features easily and effectively.                                        <esc>
  74.                                                                         <esc>
  75. IMPORTANT NOTE TO ENHANCED KEYBOARD USERS: Alternate hot keys for       <esc>
  76. enhanced keyboards are in parentheses.  Refer to section 15.5, the      <esc>
  77. newkey.doc, or readme files for more information.                       <esc>
  78.                                                                         <esc>
  79.     This tour may be exited at any time by pressing CTRL F3.            <esc>
  80.     Press ALT H for help.                                               <esc>
  81.     Press F1 to begin your tour.                                        <esc>
  82. <enddef>
  83. * <begdef><alth><esc>
  84. cls<enter>
  85.                         HELP                                            <esc>
  86.                                                                         <esc>
  87.     You are currently taking a guided tour of Newkey.  This tour does   <esc>
  88. not know where you just came from so you will have to choose from one   <esc>
  89. of the options below to continue.                                       <esc>
  90.                                                                         <esc>
  91.                                                                         <esc>
  92. EXIT TOUR - Press CTRL F3.                                              <esc>
  93.                                                                         <esc>
  94. LOST - If you get lost the tour may be restarted at any point by        <esc>
  95. pressing the appropriate function key.  Press ALT D for a directory     <esc>
  96. listing of function keys.                                               <esc>
  97.                                                                         <esc>
  98. TOUR GUIDE - Press ALT D for a tour directory.                          <esc>
  99.                                                                         <esc>
  100. <enddef>
  101. * <begdef><ctrlf1><esc>
  102. cls<enter>
  103.                NEWKEYSP, THE NEWKEY SUPPORT PROGRAM                     <esc>
  104.                   Demonstration for <altn>                           <esc>
  105.                                                                         <esc>
  106.                                                                         <esc>
  107.      Newkeysp provides many features to complement Newkey, including:   <esc>
  108.                                                                         <esc>
  109.    - Save key definition file from memory to disk                       <esc>
  110.    - Load key definition file to memory from disk                       <esc>
  111.    - Merge key definition file into memory from disk                    <esc>
  112.    - Change Newkey parameters from batch files                          <esc>
  113.    - Execute Newkey macros from batch files                             <esc>
  114.    - Display key directory                                              <esc>
  115.    - Display key translations                                           <esc>
  116.    - Clear current key definitions from memory                          <esc>
  117.    - Toggle Newkey on/off                                               <esc>
  118.    - Display/update Newkey control keys                                 <esc>
  119.    - Display/update Newkey parameters                                   <esc>
  120.    - Unload and reclaim memory                                          <esc>
  121.    - Execute macros from batch files                                    <esc>
  122.    - Turn slow typing mode on/off                                       <esc>
  123.                                                                         <esc>
  124.                                                                         <esc>
  125.      Press CTRL F2 to continue, ALT H for help.                         <esc>
  126.                                                                         <esc>
  127. <enddef>
  128. * <begdef><ctrlf2><esc>
  129. cls<enter>
  130.                     INVOKING NEWKEYSP                                   <esc>
  131.                 Demonstration for <altn>                            <esc>
  132.                                                                         <esc>
  133. Newkeysp's functions may be invoked in one of two ways:                 <esc>
  134.                                                                         <esc>
  135.    1.  Type Newkeysp, press enter and a menu of options will be         <esc>
  136. displayed.                                                              <esc>
  137.                                                                         <esc>
  138.    2.  Type Newkeysp plus a parameter and Newkeysp will perform the     <esc>
  139. requested function and return to DOS.  This option is particularly      <esc>
  140. useful in a batch file invoked at system initialization.                <esc>
  141.                                                                         <esc>
  142.    The best way to familiarize yourself with Newkeysp's functions is    <esc>
  143. to call it up and try out the various menu options.  The batch file     <esc>
  144. "example.bat" contains many examples of using Newkeysp in batch files.  <esc>
  145.                                                                         <esc>
  146.                                                                         <esc>
  147.                                                                         <esc>
  148.      Press CTRL F3 to continue, ALT H for help.                         <esc>
  149. <enddef>
  150. * <begdef><ctrlf3><esc>
  151. cls<enter>
  152.                          END OF TOUR                                    <esc>
  153.                                                                         <esc>
  154.     Well <altn>, this ends the Newkey tour.  We hope that you  <esc>
  155. find Newkey a powerful new tool which will enhance your productivity    <esc>
  156. and make life with your PC a lot easier.                                <esc>
  157.                                                                         <esc>
  158.     Newkey offers many more features and options.  You will have many   <esc>
  159. more questions.  You will find the Newkey manual a valuable aid in      <esc>
  160. untapping Newkey's power and best customizing it to meet your needs and <esc>
  161. hardware/software configuration.                                        <esc>
  162.                                                                         <esc>
  163.     If you are not a registered user we urge you to order the latest    <esc>
  164. copy.  As a registered user you will receive:                           <esc>
  165.                                                                         <esc>
  166. - The latest version of Newkey                                          <esc>
  167. - A version wihch does not display the evaluation notice screen         <esc>
  168. - A printed manual covering the many features not demonstrated in       <esc>
  169.   this tour                                                             <esc>
  170. - Telephone and written support                                         <esc>
  171. - Notification of new versions                                          <esc>
  172.                                                                         <esc>
  173.      Press CTRL F4 to exit tour, ALT H for help                         <esc>
  174. <enddef>
  175. * <begdef><ctrlf4><esc>
  176. cls<enter>
  177.                        EXIT TOUR                                        <esc>
  178.                 Demonstration for <altn>                            <esc>
  179.                                                                         <esc>
  180.     Since this tour does not run under a program, the simplest way to   <esc>
  181. exit is to just continue on your way and do what you want.  Since       <esc>
  182. several function keys and others have been redefined, you will probably <esc>
  183. want to return to their native meanings.  This may be done in two ways: <esc>
  184.                                                                         <esc>
  185.   - Press CTRL 6.  This will deactivate Newkey completely.              <esc>
  186.                                                                         <esc>
  187.   - Press ALT C.  This will invoke Newkeysp to clear the current key    <esc>
  188.     definitions from memory leaving Newkey active, but with all key     <esc>
  189.     definitions completely purged.                                      <esc>
  190.                                                                         <esc>
  191.     To reclaim the memory Newkey has reserved you can re-boot by        <esc>
  192. pressing ALT-CTRL-DEL simultaneously.                                   <esc>
  193.                                                                         <esc>
  194.     To retake portions of the tour just press the appropriate           <esc>
  195. function key.  Press ALT D for a tour directory.                        <esc>
  196.                                                                         <esc>
  197.      Press ALT H for help.                                              <esc>
  198. <enddef>
  199. * <begdef><f1>cls<enter>
  200.                           WELCOME TO NEWKEY                             <esc>
  201.                                                                         <esc>
  202.            A POWERFUL MACRO PROCESSOR FOR THE IBM PC                    <esc>
  203.                                                                         <esc>
  204.                                                                         <esc>
  205.      This starts a guided tour which will introduce you to many         <esc>
  206. of Newkey's powerful features.  We will show you how to take control    <esc>
  207. of your keyboard and make your software easier to use.                  <esc>
  208.                                                                         <esc>
  209.     This tour uses Newkey macros extensively.  In fact every thing you  <esc>
  210. are reading has been generated from macros.  This tour does not use a   <esc>
  211. program.  You will be operating under DOS the whole time.               <esc>
  212.                                                                         <esc>
  213.                                                                         <esc>
  214.                            What is a Macro?                             <esc>
  215.                                                                         <esc>
  216.      A macro is any sequence of keystrokes which are assigned to a      <esc>
  217. particular key.  These allow customization of software packages,        <esc>
  218. keyboard redefinition, creation of boiler plate passages, and other     <esc>
  219. useful purposes.  Macros will also be called key definitions or         <esc>
  220. translations in this demonstration.                                     <esc>
  221.                                                                         <esc>
  222.     Lets start by defining a macro.  Press F2 to continue.              <esc>
  223. <enddef>
  224. * <begdef><f10><esc>
  225. cls<enter>
  226.                  OTHER NEWKEY FEATURES                                  <esc>
  227.                 Demonstration for <altn>                           <esc>
  228.                                                                         <esc>
  229.                                                                         <esc>
  230.      In addition to the features already demonstrated Newkey provides   <esc>
  231. several other features including:                                       <esc>
  232.                                                                         <esc>
  233.    - Full featured macro editor                                         <esc>
  234.    - Load and save macro files                                          <esc>
  235.    - Define macros within macros                                        <esc>
  236.    - Error correction during key definition                             <esc>
  237.    - Recursion detection during key definition and playback             <esc>
  238.    - Ability to change the macro buffer size at Newkey loading          <esc>
  239.    - Macro may call itself                                              <esc>
  240.    - Slow typing mode                                                   <esc>
  241.    - Extended keyboard buffer                                           <esc>
  242.    - Speedup keyboard repetition rate                                   <esc>
  243.    - Screen saver                                                       <esc>
  244.    - Defining status line                                               <esc>
  245.    - Cancel Newkey processing during playback or definition             <esc>
  246.                                                                         <esc>
  247.      For a demonstration of Newkeysp, the NEWKEY Support Program,       <esc>
  248. Press CTRL F1.  Press ALT H for help                                    <esc>
  249. <enddef>
  250. * <begdef><f2>cls<enter>
  251.                        DEFINING A MACRO                                 <esc>
  252.                                                                         <esc>
  253.                                                                         <esc>
  254. 1.  Press the ALT = key.  This will cause a window to open prompting    <esc>
  255. you to enter the key you wish to define.                                <esc>
  256.                                                                         <esc>
  257. 2.  Press the key you wish to define.                                   <esc>
  258.                                                                         <esc>
  259. 3.  Now you will be asked to type in a description.  When you are done  <esc>
  260. done press the enter key to continue.  At this point the window will    <esc>
  261. close, a help line will displayed, and the cursor will become a block.  <esc>
  262.                                                                         <esc>
  263. 4.  Now enter the keystrokes you want the key to represent.             <esc>
  264.                                                                         <esc>
  265. 5.  Press ALT - to end the definition.                                  <esc>
  266.                                                                         <esc>
  267.     A macro may be defined at anytime, whether in a program or DOS.     <esc>
  268. Newkey will save your keystrokes and then pass them on.  Your program   <esc>
  269. will not even know that Newkey exists!                                  <esc>
  270.                                                                         <esc>
  271.      Now lets define a macro consisting of your first name and place    <esc>
  272. it in ALT N.  Follow the above steps.                                   <esc>
  273.                                                                         <esc>
  274.     Are you finished?  Press F3 to continue, ALT H for help.            <esc>
  275. <enddef>
  276. * <begdef><f3><esc>
  277. cls<enter>
  278.                     NESTED KEY DEFINITIONS                              <esc>
  279.                                                                         <esc>
  280.      Hi <altn> !                                              <esc>
  281.                                                                         <esc>
  282.      How did I know your name?  This is an example of nested key        <esc>
  283. definition.  Now that you have placed your name in ALT N, whenever      <esc>
  284. Newkey finds ALT N in a macro it will return your name instead of ALT N.<esc>
  285.                                                                         <esc>
  286.     Nested key definition means that Newkey will check each key in a    <esc>
  287. to see if it has its own macro assigned to it.  Newkey will check to    <esc>
  288. a depth of 8 levels.                                                    <esc>
  289.                                                                         <esc>
  290.      Nested key definitions are very useful in many instances.  For     <esc>
  291. example, you can develop a set of macros designed to operate on a file  <esc>
  292. designated by the ALT F key.                                            <esc>
  293.                                                                         <esc>
  294.      Then, when you start a session on your PC, you can define ALT F    <esc>
  295. equal to the file name you are working on and with 1 keystroke invoke   <esc>
  296. your editor, bring up the file in edit mode and reset default editor    <esc>
  297. modes.  1 keystroke might also print the file, copy it from 1 disk to   <esc>
  298. another, or save it from ram disk to floppy and return to your current  <esc>
  299. position without leaving your editor.                                   <esc>
  300.                                                                         <esc>
  301.      Press F4 to continue, ALT H for help.
  302.                               <esc><enddef>
  303. * <begdef><f4>cls<enter>
  304.                VARIABLE LENGTH FILL-IN-THE-BLANKS                       <esc>
  305.                   Demonstration for <altn>                          <esc>
  306.                                                                         <esc>
  307.      Newkey provides you with the ability to define variable length     <esc>
  308. fill-in-the-blanks fields within key translations.  When one of these   <esc>
  309. is encountered in a key translation, Newkey will stop translation and   <esc>
  310. wait for you to enter any keystrokes you wish.  Newkey will continue    <esc>
  311. to accept keystrokes until the enter key is pressed when normal         <esc>
  312. translation will continue.  To define a variable length                 <esc>
  313. fill-in-the-blanks field follow these steps:                            <esc>
  314.                                                                         <esc>
  315.    1.  Press CTRL [.  The cursor will change from a full block to half  <esc>
  316.    block with its bottom missing.                                       <esc>
  317.                                                                         <esc>
  318.    2.  Enter whatever keystrokes you wish.                              <esc>
  319.                                                                         <esc>
  320.    3.  Press CTRL [.  The cursor will change back to a full block.      <esc>
  321.                                                                         <esc>
  322.      This is very useful in situations where you need to enclose a      <esc>
  323. field which varies in length with repetitive text.                      <esc>
  324.                                                                         <esc>
  325.      Press ALT 1 for a demonstration of a variable length field.        <esc>
  326.      Press F5 to continue, ALT H for help.                              <esc>
  327. <enddef>
  328. * <begdef><f5><esc>
  329. cls<enter>
  330.             FIXED LENGTH FILL-IN-THE-BLANKS                             <esc>
  331.                Demonstration for <altn>                              <esc>
  332.                                                                         <esc>
  333.      Newkey provides you with the ability to define fixed length        <esc>
  334. fill-in-the-blanks fields within key translations.  When one of these   <esc>
  335. is encountered in a key translation, Newkey will stop translation and   <esc>
  336. wait for you to enter a predefined number of keystrokes.  Newkey        <esc>
  337. will accept keystrokes until the predefined number is reached when      <esc>
  338. normal translation will continue.  To define a fixed length             <esc>
  339. fill-in-the-blanks field follow these steps:                            <esc>
  340.                                                                         <esc>
  341.    1.  Press ctrl ].  The cursor will change from a full block to half  <esc>
  342.    block with its top missing.                                          <esc>
  343.                                                                         <esc>
  344.    2.  Enter whatever keystrokes you wish.                              <esc>
  345.                                                                         <esc>
  346.    3.  Press ctrl ].  The cursor will change back to a full block.      <esc>
  347.                                                                         <esc>
  348.      Press ALT 2 for a demonstration of a fixed length field.           <esc>
  349.      Press F6 to continue, ALT H for help.                              <esc>
  350. <enddef>
  351. * <begdef><f6><esc>
  352. cls<enter>
  353.             SWITCHING NEWKEY OFF/ON - CTRL 6                            <esc>
  354.                Demonstration for <altn>                              <esc>
  355.                                                                         <esc>
  356.                                                                         <esc>
  357.                                                                         <esc>
  358.      Newkey may be deactivated/activated by pressing ctrl 6.  This acts <esc>
  359. as toggle switching Newkey from one status to another.  When            <esc>
  360. deactivated Newkey is still resident in memory but it will act as if    <esc>
  361. the normal keyboard interrupt is in control.                            <esc>
  362.                                                                         <esc>
  363.    Press CTRL 6 followed by F6.  Nothing happens.                       <esc>
  364.                                                                         <esc>
  365.    Now press CTRL 6 followed by F6 and watch this screen be             <esc>
  366. redisplayed.                                                            <esc>
  367.                                                                         <esc>
  368.    Press F7 to continue, ALT H for help.                                <esc>
  369.                                                                         <esc>
  370. <enddef>
  371. * <begdef><f7><esc>
  372. cls<enter>
  373.               TRANSLATION BYPASS - CTRL 2                               <esc>
  374.                Demonstration for <altn>                              <esc>
  375.                                                                         <esc>
  376.                                                                         <esc>
  377.                                                                         <esc>
  378.      Key translation may be bypassed by pressing CTRL 2 followed by the <esc>
  379. key desired.  This has the same effect as switching Newkey off, except  <esc>
  380. that it lasts for only one keystroke.                                   <esc>
  381.                                                                         <esc>
  382.                                                                         <esc>
  383.    Press ALT 3 for a demonstration of translation bypass.               <esc>
  384.                                                                         <esc>
  385.    Press F8 to continue, ALT H for help.                                <esc>
  386.                                                                         <esc>
  387. <enddef>
  388. * <begdef><f8><esc>
  389. cls<enter>
  390.               DYNAMIC DISPLAY/UPDATE FEATURES                           <esc>
  391.                Demonstration for <altn>                              <esc>
  392.                                                                         <esc>
  393.      Most Newkey functions can be done using through the dynamic        <esc>
  394. display/update features (also known as newkey's pop-up features).       <esc>
  395. Without leaving your current program, Newkey will save your current     <esc>
  396. screen, present you with a menu of options and, when you are done,      <esc>
  397. restore your screen just where you left off.                            <esc>
  398.                                                                         <esc>
  399.     Functions available include:                                        <esc>
  400.                                                                         <esc>
  401.     - Display directory and descriptions                                <esc>
  402.     - Load and save macro files                                         <esc>
  403.     - Edit macros                                                       <esc>
  404.     - Display/update control keys                                       <esc>
  405.     - Cut and paste                                                     <esc>
  406.     - Display/execute macro commands                                    <esc>
  407.                                                                         <esc>
  408. These functions are not available in the Newkeysm.exe program saving    <esc>
  409. 24K in memory.                                                          <esc>
  410.                                                                         <esc>
  411.      Press CTRL / (alt / for enhanced keyboards) and play around,       <esc>
  412.      Be careful not to clear memory.                                    <esc>
  413.      Press F9 to continue, ALT H for help.                              <esc>
  414. <enddef>
  415. * <begdef><f9><esc>
  416. cls<enter>
  417. <cmd>42y<esc><esc><endcmd>
  418.                       SHORTHAND MODE                                    <esc>
  419.                Demonstration for <altn>                              <esc>
  420.                                                                         <esc>
  421.      When in shorthand mode Newkey watches your keystrokes as you type  <esc>
  422. and when they match the name of a multi-character macro, replaces       <esc>
  423. your macro name with the multi-character macro.  No special hot key to  <esc>
  424. enter, no wasted keystrokes.  For example, if "ne" is defined as        <esc>
  425. "Newkey" then:                                                          <esc>
  426.                                                                         <esc>
  427. typing                 yields                                           <esc>
  428. ------                 ------                                           <esc>
  429. "ne "                  "Newkey "                                        <esc>
  430. "ne is the best"       "Newkey is the best"                             <esc>
  431. "I love ne."           "I love Newkey."                                 <esc>
  432. "plane "               no playback                                      <esc>
  433. "nest"                 no playback                                      <esc>
  434. "honest"               no playback                                      <esc>
  435.                                                                         <esc>
  436. Try it out.  Type "neb.".                                               <esc>
  437.                                                                         <esc>
  438.      Press F10 to continue, ALT H for help.                             <esc>
  439. <enddef>
  440. *
  441. <begdef><ne>Newkey<enddef>
  442. <begdef><neb>Newkey is the best, isn't it<enddef>
  443.